<?php

namespace app\api\Controller;

use think\Controller;
use think\Db;
class Peng extends Controller{
	public function goods(){
		$input = input('param.');
		$data = Db::name('goods')->where('status',1)->where('bid',$input['bid'])->where('goodsid','>',$input['lastid'])->limit($input['limit'])->select();
		//var_dump($data);
		//$info='https://'.$_SERVER['HTTP_HOST'];
		foreach($data as &$vo){
			$vo['pic'] = uploadpath('goods',$vo['pic']);
		}
		echo json_encode($data);
	}
}